import http from '../httpClient.js'

/**
 * ${properties.tableComment!}
 */
const prefix = '${properties.moduleName}/${name}';

/**
 * 列表
 */
export const ${entity}List = (params) => {
    return http.fetchGet(prefix + '/list', params)
}

/**
 * 分页
 */
export const ${entity}Page = (params) => {
    return http.fetchGet(prefix, params)
}

/**
 * 新增
 */
export const ${entity}Save = (params) => {
    return http.fetchPost(prefix, params)
}

/**
 * 删除
 */
export const ${entity}Remove = (id) => {
    return http.fetchDelete(prefix + '/' + id)
}

/**
 * 修改
 */
export const ${entity}Update = (id, params) => {
    return http.fetchPut(prefix + '/' + id, params)
}